package com.hbpa.pan.swagger2;

import com.hbpa.pan.core.constants.RPanConstants;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: BlcakTiger
 * @date: 2023/10/15 11:45
 * @contact: hsf6661@163.com
 * @description: swagger2配置属性实体
 */
@Data
@Component
@ConfigurationProperties(prefix = "swagger2")
public class Swagger2ConfigProperties {

    @Value("${server.port}")
    private String serverPort;

    /**
     * 是否显示
     */
    private boolean show = true;

    /**
     * 组名
     */
    private String groupName = "r-pan";

    /**
     * 基础包路径
     */
    private String basePackage = RPanConstants.BASE_COMPONENT_SCAN_PATH;

    /**
     * 标题
     */
    private String title = "r-pan-server";

    /**
     * 描述
     */
    private String description = "r-pan-server";

    /**
     * 去除空格后
     */
    private String termsOfServiceUrl = "http://127.0.0.1:"+serverPort;

    /**
     * 联系人
     */
    private String contactName = "AoKi";

    /**
     * 联系人主页
     */
    private String contactUrl = "https://gitee.com/fufu233/r-pan";

    /**
     * 联系人邮箱
     */
    private String contactEmail = "hsf6661@163.com";

    /**
     * 版本号
     */
    private String version = "1.0";

}
